
function timeout(ms: number): Promise<string> {
  return new Promise((resolve, reject) => {
    setTimeout(resolve, ms, 'done');
  });
}

export async function getData(params: number) {
  return timeout(params)
}